Filtering hidden data embedded in media files

ABSTRACT

Systems and methods for filtering unsafe content at a network security appliance are provided. According to one embodiment, a network security appliance captures network traffic and extracts a media file from the network traffic. The network security appliance then determines the presence of a hidden data item embedded in the media file in a machine-readable form. When such a hidden data item is identified, the network security appliance performs one or more actions on the media file based on a predefined security policy.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/132,879, filed Apr. 19, 2016, which is a continuation of U.S. patentapplication Ser. No. 14/266,762, filed Apr. 30, 2014, now U.S. Pat. No.9,391,384, both of which are hereby incorporated by reference in theirentirety for all purposes.

COPYRIGHT NOTICE

Contained herein is material that is subject to copyright protection.The copyright owner has no objection to the facsimile reproduction ofthe patent disclosure by any person as it appears in the Patent andTrademark Office patent files or records, but otherwise reserves allrights to the copyright whatsoever. Copyright© 2014-2016, Fortinet, Inc.

BACKGROUND

1. Field

Embodiments of the present invention generally relate to the field ofnetwork security techniques. In particular, various embodiments relateto hidden data identification and methods for filtering media files thatare embedded with malware, spam or sensitive information.

2. Description of the Related Art

A barcode is an optical machine-readable representation of data. Linearor one-dimensional (1D) barcodes represent data by varying the width ofand spacing between parallel lines or rectangles. Two dimensions (2D)barcodes use dots, hexagons and other geometric patterns to representdata. A unit of a 2D barcode, such as a matrix barcode or Quick Response(QR) code, may represent more than 1K bytes of data depending upon theversion and encoding employed. A QR code that encodes text, music,images, Uniform Resource Locators (URLs) and/or emails can be generatedas an image file and transmitted through short message service (SMS)and/or multimedia messaging service (MMS) or via the Internet. Barcodereader utility software running on a computing device, such as a smartphone, may scan a barcode by a camera connected to or integrated withinthe computing device. The barcode reader decodes the encoded content andthen may show the content.

Some barcode reader utility software may carry out further operationsbased on the type of encoded content. For example, when the encodedcontent includes or represents a URL, the barcode reader utilitysoftware may launch a web browser and open the URL directly (via URLredirection, for example, which allows QR codes to send metadata toexisting applications on the device running the barcode reader utilitysoftware). It is convenient for a smart phone user to open a web page byscanning a barcode instead of typing in the URL manually. As such, QRcodes have become more prevalent as part of product/service advertisingstrategies targeting mobile-phone users via mobile tagging. Personalinformation or business cards may also be encoded within 2D barcodes(e.g., QR codes) and can be printed out or transmitted through anetwork.

Other ways to embed hidden content in media files include digitalwatermarking and steganography. Digital watermarking is a kind of markercovertly embedded in a noise-tolerant signal such as audio or imagedata. Digital watermarks are only perceptible under certain conditions,i.e., after using some algorithm, and are otherwise imperceptible tohuman senses. Both steganography and digital watermarking employsteganographic techniques to embed data covertly in noisy signals butremain imperceptible to human senses. Digital watermarks may be used toverify the authenticity or integrity of the carrier signal or to showthe identity of its owner. It is prominently used for tracing copyrightinfringements and for banknote authentication.

As media files may carry encoded and hidden data that are imperceptibleto human senses, some malware use these techniques to intrude into userdevices or transfer sensitive information. For example, a malicious website may distribute a barcode that contains its URL to smart phone usersand induce the users to scan or decode the barcode. After the smartphone decodes the barcode, the smart phone may launch its web browserand open the malicious website. The website may contain malware thatcan, among other things, gain access and/or control of the smart phone,disrupt operation of the smart phone and/or gather sensitive informationstored on or entered into the smart phone (e.g., usernames and passwordsentered into apps and/or websites).

In view of the foregoing, there exists a need for methods and systemthat can resist the spread of media files containing malware orsensitive information embedded therein in human imperceptible form.

SUMMARY

Systems and methods for filtering unsafe content at a network applianceare provided. According to one embodiment, a network security appliance(e.g., a firewall) captures network traffic exchanged between a senderand a recipient and extracts a media file from the network traffic. Thenetwork security appliance then determines the presence of a hidden dataitem embedded in the media file in a machine-readable form. When such ahidden data item is identified, the network security appliance performsone or more actions on the media file based on a predefined securitypolicy.

Other features of embodiments of the present invention will be apparentfrom the accompanying drawings and from the detailed description thatfollows.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the present invention are illustrated by way of example,and not by way of limitation, in the figures of the accompanyingdrawings and in which like reference numerals refer to similar elementsand in which:

FIG. 1 illustrates an exemplary network architecture in accordance withan embodiment of the present invention.

FIG. 2 is a flow diagram illustrating a method for scanning a media filecontaining human imperceptible content at a security device inaccordance with an embodiment of the present invention.

FIG. 3 is a flow diagram illustrating a method for checking humanimperceptible content by comparing a signature of a media file inaccordance with an embodiment of the present invention.

FIG. 4 is a flow diagram illustrating a method for checking humanimperceptible content by decoding the human imperceptible content inaccordance with an embodiment of the present invention.

FIG. 5 illustrates exemplary functional units of a security device inaccordance with an embodiment of the present invention.

FIG. 6 is an exemplary computer system in which or with whichembodiments of the present invention may be utilized.

DETAILED DESCRIPTION

Systems and methods for filtering unsafe content at a network applianceare provided. According to one embodiment, a network appliance capturesnetwork traffic and extracts a media file from the network traffic. Thenetwork appliance then determines if a hidden data item is embedded inthe media file in a machine-readable form. The hidden data item may be abarcode, a digital watermark or other steganographic data containingencoded data that is imperceptible to human senses. The network securityappliance takes appropriate action on the media file when such a hiddendata item is found in the network traffic.

In the following description, numerous specific details are set forth inorder to provide a thorough understanding of embodiments of the presentinvention. It will be apparent, however, to one skilled in the art thatembodiments of the present invention may be practiced without some ofthese specific details. In other instances, well-known structures anddevices are shown in block diagram form.

Embodiments of the present invention include various steps, which willbe described below. The steps may be performed by hardware components ormay be embodied in machine-executable instructions, which may be used tocause a general-purpose or special-purpose processor programmed with theinstructions to perform the steps. Alternatively, the steps may beperformed by a combination of hardware, software, firmware and/or byhuman operators.

Embodiments of the present invention may be provided as a computerprogram product, which may include a machine-readable storage mediumtangibly embodying thereon instructions, which may be used to program acomputer (or other electronic devices) to perform a process. Themachine-readable medium may include, but is not limited to, fixed (hard)drives, magnetic tape, floppy diskettes, optical disks, compact discread-only memories (CD-ROMs), and magneto-optical disks, semiconductormemories, such as ROMs, PROMs, random access memories (RAMs),programmable read-only memories (PROMs), erasable PROMs (EPROMs),electrically erasable PROMs (EEPROMs), flash memory, magnetic or opticalcards, or other type of media/machine-readable medium suitable forstoring electronic instructions (e.g., computer programming code, suchas software or firmware). Moreover, embodiments of the present inventionmay also be downloaded as one or more computer program products, whereinthe program may be transferred from a remote computer to a requestingcomputer by way of data signals embodied in a carrier wave or otherpropagation medium via a communication link (e.g., a modem or networkconnection).

In various embodiments, the article(s) of manufacture (e.g., thecomputer program products) containing the computer programming code maybe used by executing the code directly from the machine-readable storagemedium or by copying the code from the machine-readable storage mediuminto another machine-readable storage medium (e.g., a hard disk, RAM,etc.) or by transmitting the code on a network for remote execution.Various methods described herein may be practiced by combining one ormore machine-readable storage media containing the code according to thepresent invention with appropriate standard computer hardware to executethe code contained therein. An apparatus for practicing variousembodiments of the present invention may involve one or more computers(or one or more processors within a single computer) and storage systemscontaining or having network access to computer program(s) coded inaccordance with various methods described herein, and the method stepsof the invention could be accomplished by modules, routines,subroutines, or subparts of a computer program product.

Notably, while embodiments of the present invention may be describedusing modular programming terminology, the code implementing variousembodiments of the present invention is not so limited. For example, thecode may reflect other programming paradigms and/or styles, including,but not limited to object-oriented programming (OOP), agent orientedprogramming, aspect-oriented programming, attribute-oriented programming(@OP), automatic programming, dataflow programming, declarativeprogramming, functional programming, event-driven programming, featureoriented programming, imperative programming, semantic-orientedprogramming, functional programming, genetic programming, logicprogramming, pattern matching programming and the like.

Terminology

Brief definitions of terms used throughout this application are givenbelow.

The terms “connected” or “coupled” and related terms are used in anoperational sense and are not necessarily limited to a direct connectionor coupling. Thus, for example, two devices may be coupled directly, orvia one or more intermediary media or devices. As another example,devices may be coupled in such a way that information can be passedthere between, while not sharing any physical connection with oneanother. Based on the disclosure provided herein, one of ordinary skillin the art will appreciate a variety of ways in which connection orcoupling exists in accordance with the aforementioned definition.

As used herein, the term “hidden” generally refers to something that isimperceptible to human senses. Examples of hidden data items or contentinclude, but are not limited to, data encoded within digital watermarks,steganography, 1D barcodes and/or 2D barcodes. While 1D and 2D barcodesare perceptible by the human sense of vision, the encoded contentembedded therein is not perceptible by human senses and requires theassistance of decoding software. As such, as used herein “hidden dataitems” and “hidden content” include data (e.g., numeric alphanumeric,binary and/or kanji data) encoded within digital watermarks,steganography, 1D barcodes, 2D barcodes and/or other optical labels orrepresentations of data.

The phrases “in an embodiment,” “according to one embodiment,” and thelike generally mean the particular feature, structure, or characteristicfollowing the phrase is included in at least one embodiment of thepresent disclosure, and may be included in more than one embodiment ofthe present disclosure. Importantly, such phrases do not necessarilyrefer to the same embodiment.

If the specification states a component or feature “may”, “can”,“could”, or “might” be included or have a characteristic, thatparticular component or feature is not required to be included or havethe characteristic.

The phrase “media file” generally refers to a file containing image,audio and/or video data.

The phrase “network security appliance” generally refers to aspecialized or dedicated device for use on a network in virtual orphysical form. Some network appliances are implemented asgeneral-purpose computers with appropriate software configured for theparticular functions to be provided by the network appliance; othersinclude custom hardware (e.g., one or more custom Application SpecificIntegrated Circuits (ASICs)). Examples of functionality that may beprovided by a network appliance include, but is not limited to, Layer2/3 routing, content inspection, content filtering, firewall, trafficshaping, application control, Voice over Internet Protocol (VoIP)support, Virtual Private Networking (VPN), IP security (IPSec), SecureSockets Layer (SSL), antivirus, intrusion detection, intrusionprevention, Web content filtering, spyware prevention and anti-spam.Examples of network appliances include, but are not limited to, networkgateways and network security appliances (e.g., FORTIGATE family ofnetwork security appliances and FORTICARRIER family of consolidatedsecurity appliances), messaging security appliances (e.g., FORTIMAILfamily of messaging security appliances), database security and/orcompliance appliances (e.g., FORTIDB database security and complianceappliance), web application firewall appliances (e.g., FORTIWEB familyof web application firewall appliances), application accelerationappliances, server load balancing appliances (e.g., FORTIBALANCER familyof application delivery controllers), vulnerability managementappliances (e.g., FORTISCAN family of vulnerability managementappliances), configuration, provisioning, update and/or managementappliances (e.g., FORTIMANAGER family of management appliances),logging, analyzing and/or reporting appliances (e.g., FORTIANALYZERfamily of network security reporting appliances), bypass appliances(e.g., FORTIBRIDGE family of bypass appliances), Domain Name Server(DNS) appliances (e.g., FORTIDNS family of DNS appliances), wirelesssecurity appliances (e.g., FORTIWIFI family of wireless securitygateways), FORIDDOS, wireless access point appliances (e.g., FORTIAPwireless access points), switches (e.g., FORTISWITCH family of switches)and IP-PBX phone system appliances (e.g., FORTIVOICE family of IP-PBXphone systems).

FIG. 1 illustrates an exemplary network architecture in accordance withan embodiment of the present invention. Network architecture 100 shownin FIG. 1 comprises a headquarters network 110, multiple branch officenetworks 121 and 122. The headquarters network 110 and branch officenetworks 121 and 122, PC 123 and mobile phone 124 are connected throughinternetworks, such as the Internet 130. Headquarters network 110comprises multiple network appliances, such as local server 111 a, PC111 b, laptop 111 c, mobile phone 111 d and other computing devices thatare operatively coupled to each other through a Local Area Network(LAN), wherein the LAN is then operatively coupled with firewall 112 (orone or more other network security appliances) that enable access toInternet 130. Firewall 112 separates the external computing environment,represented by Internet 130, from the internal computing environment ofheadquarters network 110. Firewall 112 may intercept or otherwise filterthe communication between Internet 130 and the network appliances ofheadquarters network 110 and scan for malware, viruses or otherhigh-risk network access. The internal structures of branch officenetworks 121 and 122 are omitted as they may be the same as that ofheadquarters network 110.

In the exemplary network architecture shown in FIG. 1, firewall 112 maybe a rule-based security device that controls traffic going through itsinterfaces. Usually, firewall 112 may comprise multiple physical networkinterfaces, such as an internal interface with 4-24 or more Ethernetports, 1-4 or more wide area network (WAN) interfaces, one demilitarizedzone (DMZ) interface. Further, when the private network is separatedinto multiple virtual LANs (VLANs), firewall 112 may also definemultiple virtual interfaces for each VLAN. Firewall 112 comprises a ruleset that includes multiple rules that are created by the networkadministrator and controls the traffic passing through firewall 112. Ineach rule, the traffic is identified by source interfaces, destinationinterfaces, source Internet Protocol (IP) addresses, destination IPaddresses, users/user groups, devices and/or other parameters of thetraffic. In one embodiment of the present invention, multiple interfacesof firewall 112 may be selected as the source/destination of traffic ina single rule. The multiple interfaces may include physical interfaces,virtual interfaces and/or zones of firewall 112. Usually, multipleinterfaces that belong to the same category may be selected as a sourcein a rule. For example, multiple VLAN interfaces may be selected assources/destinations of the traffic in a rule. However, differentcategories of interfaces may be also allowed as sources/destinations ofa traffic flow in a rule. For example, an internal interface and a WANinterface or a physical interface and a virtual interface may beselected in a rule as the sources/destinations of traffic. In thisscenario, a warning message may be provided to the network administratorbefore the rule containing multiple categories of interfaces can beconfigured within firewall 112. After the traffic flow is defined, anaction controlling the traffic flow, such as accept or deny, isdesignated in each rule. In operation, all traffic going throughinterfaces of firewall 112 is captured by firewall 112. The sourceinterface, destination interface and other parameters of the capturedtraffic flow are matched with those of each rule of a rule set. Thefirst matched rule in the rule set is typically used for controlling thetraffic flow and the traffic flow is processed based on the actiondefined in the matched rule.

FIG. 2 is a flow diagram illustrating a method for scanning a media filecontaining imperceptible content at a security device in accordance withan embodiment of the present invention. In the present embodiment, amedia file that is transmitted from a sender to an intended recipient iscaptured by a network security appliance, which is usually disposed at aborder of a private network. The media file may be an image file, anaudio file or a video file. The media file may contain an imagerepresenting a barcode or an embedded digital watermark that isimperceptible to human senses. In the following example it is assumedthe media file is a barcode image that contains a malware URL (e.g., aURL suspected or confirmed to be associated with malicious activitiesand included on a URL blacklist).

At block 201, a network security appliance (e.g., firewall 112) capturesnetwork traffic (e.g., data packets) between senders and intendedrecipients. The network traffic may be incoming traffic or outgoingtraffic of a private network.

At block 202, a media file is extracted from the network traffic by thenetwork security appliance. Usually, data packets of the network trafficare cached and then the media file may be reconstructed from the cacheddata packets.

At block 203, after the media file is extracted, it is sent to aninspection engine to search for any unsafe information based on securitypolicies of the network security appliance. The inspection engine may beresponsible for carrying out antivirus protection, email filtering(antispam), web filtering, data leak prevention and the like. In contextof the present example, the inspection engine may determine the mediafile at issue that includes embedded therein one or more hidden dataitems is unsafe without actually decoding the hidden data items. Todetermine whether the media file contains unsafe data items embeddedtherein, the inspection engine may match the media file with knownunsafe media files that are collected by the network security appliance.The network security appliance may maintain an image database thatcollects known unsafe media files. The unsafe images may be collectedfrom different sources. First, the network security appliance maymaintain a list of malicious or unsafe URLs. The QR code or otherbarcode images of the malicious or unsafe URLs may be generated andstored in an unsafe media file database by the network securityappliance. Second, after the network security appliance intercepts amedia file that contains unsafe hidden data, the media file and/or asignature thereof may be stored in the unsafe media file database forfuture use. Third, suspicious media files with hidden data items may besubmitted to the network security appliance by other users. Thesuspicious media files may be decoded and scanned for one or more hiddendata items by the network security appliance and may be stored to theunsafe media files database if one or more hidden data items are foundand determined to be unsafe. The suspicious media files database may bestored locally at the network security appliance or remotely at otherservers or in cloud storage, which may be shared by multiple networksecurity appliances for performing hidden data inspection.

In one embodiment, a received image file may compared directly with theknown unsafe images stored by the network security appliance. Variousalgorithms for matching/comparing images are well known in the art. Forexample, keypoint matching, the histogram method, a pixel-basedidentical check and/or a block-based identical check may be used tomatch the received image file with images in the database. If thereceived image file matches a known unsafe image within a predeterminedor configurable degree of certainty, it is determined that an unsafehidden data item exists in the image file. In another embodiment, asignature of the received media file may be generated and matched withsignatures of the unknown unsafe media files as described further belowwith reference to FIG. 3.

At block 204, the received media file is decoded and a hidden data itemmay be extracted. The network security appliance may scan the decodedhidden data item for any malware, unsafe URLs, sensitive informationand/or unlawful content. The hidden data item may be inspected based onsecurity policies as described further below with reference to FIG. 4.

At block 205, based on the results of the inspections of blocks 203 and204, the inspection engine determines whether the media file is safe. Inthe context of the present example, both the pre-match inspection ofblock 203 and the inspection after decoding of block 204 are employed.In alternative embodiments, either of the two inspection methodologiesdescribed above may be used independently or in combination with otherinspection methodologies for scanning for unsafe hidden data items inmedia files.

At block 206, the network security appliance may block transmission ofthe media file to the intended recipient. Optionally, a warning messageindicating that an unsafe hidden data item has been found may be sent tothe network administrator or the intended recipient.

FIG. 3 is a flow diagram illustrating a method for checking humanimperceptible content by comparing a signature of a media file inaccordance with an embodiment of the present invention. In the presentembodiment, the media file is checked for an unsafe hidden data itemwithout decoding the human imperceptible content. When decoding of thehuman imperceptible content of the media file is too time-consuming, themedia file may be filtered by inspecting its signature before it isdecoded for further inspection.

At block 301, a signature of the received media file may be generated bya network security appliance (e.g., firewall 112). The signature may bea cryptographic hash value, such as a Message Digest 5 (MD5) value or aSecure Hash Algorithm (SHA) value. The hash value may also be an averageor perceptual hash value that is derived from various features of thecontent of the media file.

At block 302, the network security appliance may check the signature ofthe media file against a signature database that contains signatures ofknown unsafe media files. Depending upon the particular implementation,the signature database may also or alternatively include signatures ofknown safe media files. As mentioned in the embodiment shown by FIG. 2,the network security appliance may maintain an unsafe media filedatabase. The network security appliance may generate signatures of theunsafe media files and store the signatures in the database for futureinspection. In some embodiments, checking the signature of the mediafile in a signature database may be conducted by a hardware-basedcontent processor that supports signature-based patterns. Thehardware-based content processor may match the signature of the mediafile with multiple (e.g., over 30,000) signatures in the databasesimultaneously, by utilizing hardware-friendly blooming filters and hashfunctions. The hardware-based content processor may speed up the wholesystem significantly.

At block 303, the network security appliance may determine if thesignature of the received media file has been found in the signaturedatabase. If the signature is found in a signature database containingsignatures of only known unsafe media files, then the received mediafile is a known unsafe file that contains a hidden data item.

An appropriate action is then taken based on the security policy. Forexample, the media file may be blocked or a warning message may be sentto the intended recipient or the network administrator at block 304. Ifan average hash value or perceptual hash value is used, then if thesignature of the media file is near enough to a signature of a knownunsafe media file, the media file may be determined to be the knownunsafe media file with some variations and may be blocked by the networksecurity appliance.

FIG. 4 is a flow diagram illustrating a method for checking humanimperceptible content by decoding the human imperceptible content inaccordance with an embodiment of the present invention. The embodimentshown in FIG. 3 can identify an unsafe media file when the same mediafile has been found before. It is possible that an unsafe image file maybe changed sufficiently so as not to be identified by comparison withpreviously observed known unsafe image files. In the present embodiment,the human imperceptible content embedded in the received media file isdecoded so that the human imperceptible content may be evaluated.

At block 401, the received media file is sent to a decode module of theinspection engine. The decode module may detect the type of the mediafile and call a corresponding decoding function to obtain the humanimperceptible contents. For example, if the media file is an image file,it may be sent to a barcode decoder to read out the encoded data. Thebarcode decoder may support multiple image formats, including, but notlimited to, as Portable Network Graphics (PNG), Joint PhotographicExperts Group (JPEG), JPEG 2000, Exchangeable image file format (Exif),raw image format (RAW), Graphics Interchange Format (GIF), Tagged ImageFile Format (TIFF) and Windows Bitmap image file format (BMP). Thebarcode decoder may read out barcode in various barcode formats,including, but not limited to, Universal Product Code (UPC)-A, UPC-E,International Article Number (EAN)-8, EAN-13, Code 39, Code 128, QRCode, Data Matrix, PDF417, Interleaved 2 of 5 (ITF) and IFT-14. Theimage file may also be sent to a watermark decoder to read out one ormore image watermarks. Similarly, audio or video files may be sent tocorresponding decoders to read out one or more audio/video watermarks.

At block 402, if a hidden data item is identified by the decoder, thehidden item is scanned locally based at least on one or more securitypolicies of the network security appliance. For example, if a securitypolicy is a web filter that blocks a website, then the decoded hiddendata is scanned to check if the hidden data includes a URL associatedwith or redirecting to a blocked website. If a security policy is asensitive information (e.g., social security numbers, credit cardnumbers, etc.) filter, the decoded hidden data is scanned for suchsensitive information. If a keyword filter is configured in the networksecurity appliance, the decoded data may be scanned for designatedkeywords. Other policies that monitor the transmission of watermarks orsteganographic data may be configured so that media files that areembedded with watermarks or steganographic data may be blocked fromtransmission. It will be apparent to one of ordinary skill in the artthat the decoded data may be checked by one or more of an IntrusionPrevention System (IPS) engine for antivirus protection, email filtering(antispam), web filtering and data leak prevention.

At block 403, the media file may be sent to a remote or cloud-basednetwork security appliance for further deep inspection. Usually, a localvirus or spam signature database contains only a part of all known virusor spam signatures, so that the scanning may be carried out quickly.Local signature databases may also fail to be updated in a timelymanner. Therefore, if no threat is found by the local network securityappliance, the media file or its signature may be sent to a remote orcloud-based network security appliance for further evaluation.Alternatively or additionally, if the local network security applianceis unable to decode the media file, the media file may be decoded by amore powerful decoder and a deeper inspection into the decoded hiddendata may be performed by a remote network security appliance.

At block 404, the network security appliance determines if the hiddendata is safe based on the inspections of blocks 402 and 403.

At block 405, the media file is blocked from transmission or a warningmessage may be sent to the intended recipient or the networkadministrator if the hidden data is not safe.

FIG. 5 illustrates exemplary functional units of a network securityappliance in accordance with an embodiment of the present invention. Inthe present embodiment, a network system comprises a sender 510, afirewall 500 and a receiver (intended recipient) 550. Network trafficfrom sender 510 to receiver 550 is captured by firewall 500. Firewall500 comprises a network module 540 and an IPS 520. Network module 540 isused for capturing data packets between sender 510 and receiver 550.After data packets are captured, IPS 520 may scan them based on securitypolicies of firewall 500. If the data packets violate any securitypolicy, they may be blocked by firewall 500.

In the present embodiment, IPS 520 comprises a media extracting module521 and a hidden data detector 530. The data packets captured by networkmodule 540 may be cached by media extracting module 521. A media filethat is sent from sender 510 may be reconstructed from the cached datapackets. After the media file is extracted, hidden data detector 530 mayscan it based on security policies of firewall 500.

Hidden data detector 530 is used for detecting if the media filecontains any hidden data item that should be blocked based on differentalgorithms. Hidden data detector 530 may comprise multiple functionalmodules that may check hidden data item in the media file with orwithout decoding the hidden data item contained within the media file.Hidden data detector 530 may comprise a media file database 531, asignature generating module 532, a signature matching module 533 and asignature DB 534, which scans the media file based on a signaturematching algorithm without decoding the hidden data item from the mediafile. Hidden data detector 530 may further comprise a decoding module535, a content control module 536 and a content policy registry 537 thatscans the media file by decoding a hidden data item contained within themedia file. It will be appreciated by one of ordinary skill in the artwill appreciate that any or all of the scanning algorithms describedherein and/or other image matching techniques may be used fordetermining if a hidden data item is embedded in media file and if themedia file is safe or not. The functional modules for the hidden dataitem scanning are described in detail below.

Media file DB 531 comprises known unsafe media files that are collectedby firewall 500. These unsafe media files contain hidden contentembedded within the media files. The hidden content may be encoded asbarcodes or digital watermarks that are imperceptible by human senses.URLs that direct a user device to access an unsafe website or carry outunsafe operations may be encoded and hidden in the media files.Sensitive information, such as personal information, that is encodedwithin a QR code may be embedded in an image file and transmittedwithout permission by the owners. The hidden content may also comprisedigital watermarks that identify the existence of proprietaryinformation, intellectual property rights and/or the owner of the mediafile. The unsafe media files may be intercepted by the firewall orsubmitted by other users for inspection.

Signature DB 534 comprises signatures or fingerprints of unsafe mediafiles that are known to the firewall 500. A signature or fingerprint maybe a cryptographic hash value, including, but not limited to a MessageDigest 5 (MD5) value or a Secure Hash Algorithm (SHA) value of a knownunsafe media file. Optionally, the signature or fingerprint may be anaverage hash value or a perceptual hash value that is derived fromvarious features of the content of the media file. The signature orfingerprint may be other fingerprints that are comparable with imagematching algorithms. In the present embodiment, a signature orfingerprint of each media file in the image DB 532 may be generated bysignature generating module 532 and stored in signature DB 534.Signature DB 534 may also be downloaded from a server that collectssignatures of unsafe media files.

It will be appreciated by one of ordinary skill in the art that mediafile DB 531 and signature DB 534 may be stored locally at firewall 500so that the searching for known unsafe media files may be conductedquickly. Optionally, media file DB 531 and signature DB 534 may bestored remotely from firewall 500. These databases may be maintained byand shared among multiple firewalls so that more unsafe media files maybe identified.

Signature generating module 532 is used for generating a signature orfingerprint for the media file that is extracted by media extractingmodule 521. The signature may be a cryptographic hash value, e.g., MD5or SHA value, of the extracted media file. By comparing thecryptographic hash value of the present media file with hash values ofknown unsafe media files, hidden data detector 530 may determine if thesame media file has been identified as an unsafe file before. However,it is possible that the received media file and a known unsafe mediafile in media file DB 531 contain the same unsafe hidden content, butthe files are not identical. For example, the received media file and aknown unsafe media file have the same content but saved in differentformat or the received media file may have been generated by scaling,distorting or other modification of the known unsafe image file. Inthese cases, cryptographic hash values of the received media file andthe known unsafe media file will not match, but average or perceptualhash values may be used to find the degree of similarity of two images.If the average or perceptual hash value of the received media file isthe same as or similar to the perceptual hash value of a known unsafefile, the received file may also be identified as an unsafe file.

Signature matching module 533 is used for searching the signature orfingerprint of the received media file in signature DB 534. If thesignature is found or matched with a signature in the signature DB 534,the media file is identified as unsafe and IPS 520 may inform networkmodule 540 to block the media file from transmission to receiver 550 andmay send a warning message to receiver 550 or network administrator.

If a signature of the received media file is not found in signature DB534, the media file may be sent to decoding module 535 so that thehidden data item of the media file may be decoded. Decoding module 535may be a barcode reader supporting multiple barcode formats, such asUPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 128, QR Code, Data Matrix,PDF 417 and ITF. Decoding module 535 may be a digital watermarkidentifier. By scanning the media file, one or more digital watermarksthat are encoded in the media file may be identified by decoding module535. The digital watermark may be special text, audio or logo embeddedby an IP right owner of the media file. The watermark may also includesensitive information or illegal content embedded by someone who wantsto hide such content from firewall checking.

After the hidden data item is decoded from the media file, contentcontrol module 536 scans the hidden data item based on correspondingscan policies in content policy registry 537. In one embodiment, if thehidden data is a URL and a website filter is configured in contentpolicy registry 537, content control module 536 scans the URL based onthe website filter. If the URL is not allowable, the media file isblocked. In another embodiment, if the hidden data contains text and akeyword filter or sensitive information filter is configured, the textis scanned based on the filters. When a forbidden keyword or sensitiveinformation is detected by content control module 536, the media filemay be blocked. Content control module 536 may also check the digitalwatermarks decoded from the media file based on corresponding securitypolicies.

Further, after the hidden data in a media file is decoded and identifiedas unsafe based on a security policy, the media file may be stored inmedia file DB 531 and the signature thereof may be stored in signatureDB 534 for use in connection with future pre-match signature scanning.

FIG. 6 is an example of a computer system 600 with which embodiments ofthe present disclosure may be utilized. Computer system 600 mayrepresent or form a part of a network appliance, a server or a clientworkstation.

Embodiments of the present disclosure include various steps, which willbe described in more detail below. A variety of these steps may beperformed by hardware components or may be tangibly embodied on acomputer-readable storage medium in the form of machine-executableinstructions, which may be used to cause a general-purpose orspecial-purpose processor programmed with instructions to perform thesesteps. Alternatively, the steps may be performed by a combination ofhardware, software, and/or firmware.

As shown, computer system 600 includes a bus 630, a processor 605,communication port 610, a main memory 615, a removable storage media640, a read only memory 620 and a mass storage 625. A person skilled inthe art will appreciate that computer system 600 may include more thanone processor and communication ports.

Examples of processor 605 include, but are not limited to, an Intel®Itanium® or Itanium 2 processor(s), or AMD® Opteron® or Athlon MP®processor(s), Motorola® lines of processors, FortiSOC™ system on a chipprocessors or other future processors. Processor 605 may include variousmodules associated with embodiments of the present invention.

Communication port 610 can be any of an RS-232 port for use with a modembased dialup connection, a 10/100 Ethernet port, a Gigabit or 10 Gigabitport using copper or fiber, a serial port, a parallel port, or otherexisting or future ports. Communication port 610 may be chosen dependingon a network, such a Local Area Network (LAN), Wide Area Network (WAN),or any network to which computer system 600 connects.

Memory 615 can be Random Access Memory (RAM), or any other dynamicstorage device commonly known in the art. Read only memory 620 can beany static storage device(s) such as, but not limited to, a ProgrammableRead Only Memory (PROM) chips for storing static information such asstart-up or BIOS instructions for processor 605.

Mass storage 625 may be any current or future mass storage solution,which can be used to store information and/or instructions. Exemplarymass storage solutions include, but are not limited to, ParallelAdvanced Technology Attachment (PATA) or Serial Advanced TechnologyAttachment (SATA) hard disk drives or solid-state drives (internal orexternal, e.g., having Universal Serial Bus (USB) and/or Firewireinterfaces), such as those available from Seagate (e.g., the SeagateBarracuda 7200 family) or Hitachi (e.g., the Hitachi Deskstar 7K1000),one or more optical discs, Redundant Array of Independent Disks (RAID)storage, such as an array of disks (e.g., SATA arrays), available fromvarious vendors including Dot Hill Systems Corp., LaCie, NexsanTechnologies, Inc. and Enhance Technology, Inc.

Bus 630 communicatively couples processor(s) 605 with the other memory,storage and communication blocks. Bus 630 can be, such as a PeripheralComponent Interconnect (PCI)/PCI Extended (PCI-X) bus, Small ComputerSystem Interface (SCSI), USB or the like, for connecting expansioncards, drives and other subsystems as well as other buses, such a frontside bus (FSB), which connects processor 605 to system memory.

Optionally, operator and administrative interfaces, such as a display,keyboard, and a cursor control device, may also be coupled to bus 630 tosupport direct operator interaction with computer system 600. Otheroperator and administrative interfaces can be provided through networkconnections connected through communication port 610.

Removable storage media 640 can be any kind of external hard-drives,floppy drives, IOMEGA® Zip Drives, Compact Disc-Read Only Memory(CD-ROM), Compact Disc-Re-Writable (CD-RW), Digital Video Disk-Read OnlyMemory (DVD-ROM).

Components described above are meant only to exemplify variouspossibilities. In no way should the aforementioned exemplary computersystem limit the scope of the present disclosure.

While embodiments of the invention have been illustrated and described,it will be clear that the invention is not limited to these embodimentsonly. Numerous modifications, changes, variations, substitutions, andequivalents will be apparent to those skilled in the art, withoutdeparting from the spirit and scope of the invention, as described inthe claims.

What is claimed is:
 1. A method comprising: capturing network traffic bya firewall device associated with a private network, wherein the networktraffic is directed to an intended recipient associated with the privatenetwork; determining, by the firewall device, presence of a potentiallymalicious hidden data item embedded in a media file contained within thenetwork traffic, wherein the potentially malicious hidden data itemcomprises encoded data within one or more of a digital watermark,steganography and a barcode; determining whether the potentiallymalicious hidden data item violates a security policy of a plurality ofsecurity policies of the private network enforced by the firewall deviceby applying a content filter to the potentially malicious hidden dataitem; and when said determining whether the decoded data violates asecurity policy is affirmative, then performing by the firewall deviceone or more of (i) blocking transmission of the media file to theintended recipient, (ii) causing the intended recipient to be alertedregarding the violated security policy and (iii) causing a networkadministrator of the private network to be alerted regarding theviolated security policy.
 2. The method of claim 1, wherein the contentfilter comprises a Uniform Resource Locator (URL) filter.
 3. The methodof claim 2, wherein the security policy contains information indicativeof a URL known to be associated with malicious activities.
 4. The methodof claim 2, wherein the security policy contains information indicativeof a URL associated with a blacklisted website.
 5. The method of claim2, wherein the security policy contains information indicative of a URLthat redirects to or is otherwise associated with a blacklisted website.6. The method of claim 1, further comprising determining presence of thepotentially malicious hidden data item by matching a signature of themedia file against a plurality of signatures of media files known toinclude unsafe hidden data.
 7. The method of claim 1, further comprisingdetermining presence of the potentially malicious hidden data item byperforming content inspection processing on the media file.
 8. Themethod of claim 1, further comprising determining presence of thepotentially malicious hidden data item by sending the media file orinformation regarding the media file to a remote or cloud-based networksecurity appliance external to the private network.
 9. The method ofclaim 1, wherein the media file comprises an image file or a video file.10. The method of claim 1, wherein the barcode comprises a linearbarcode or a matrix barcode.
 11. A firewall device comprising: anon-transitory storage device having embodied therein one or moreroutines; and one or more processors coupled to the non-transitorystorage device and operable to execute the one or more routines toperform a method comprising: capturing network traffic directed to anintended recipient associated with a private network protected by thefirewall device; determining presence of a potentially malicious hiddendata item embedded in a media file contained within the network traffic,wherein the potentially malicious hidden data item comprises encodeddata within one or more of a digital watermark, steganography and abarcode; determining whether the potentially malicious hidden data itemviolates a security policy of a plurality of security policies of theprivate network enforced by the firewall device by applying a contentfilter to the potentially malicious hidden data item; and when saiddetermining whether the decoded data violates a security policy isaffirmative, then (i) blocking transmission of the media file to theintended recipient, (ii) causing the intended recipient to be alertedregarding the violated security policy or (iii) causing a networkadministrator of the private network to be alerted regarding theviolated security policy.
 12. The firewall device of claim 11, whereinthe content filter comprises a Uniform Resource Locator (URL) filter.13. The firewall device of claim 12, wherein the security policycontains information indicative of a URL known to be associated withmalicious activities.
 14. The firewall device of claim 12, wherein thesecurity policy contains information indicative of a URL associated witha blacklisted website.
 15. The firewall device of claim 12, wherein thesecurity policy contains information indicative of a URL that redirectsto or is otherwise associated with a blacklisted website.
 16. Thefirewall device of claim 11, further comprising determining presence ofthe potentially malicious hidden data item by matching a signature ofthe media file against a plurality of signatures of media files known toinclude unsafe hidden data.
 17. The firewall device of claim 11, whereinthe method further comprises determining presence of the potentiallymalicious hidden data item by performing content inspection processingon the media file.
 18. The firewall device of claim 11, wherein themethod further comprises determining presence of the potentiallymalicious hidden data item by sending the media file or informationregarding the media file to a remote or cloud-based network securityappliance external to the private network.
 19. The firewall device ofclaim 11, wherein the media file comprises an image file or a videofile.
 20. The firewall device of claim 11, wherein the barcode comprisesa linear barcode or a matrix barcode.